package com.netease.pris.activity;

import com.netease.pris.activity.a.d;
import com.netease.pris.activity.view.FlingGallery;
import com.netease.pris.activity.view.pageList;
import java.util.LinkedList;

class q
  implements Runnable
{
  q(MainGridActivity paramMainGridActivity)
  {
  }

  public void run()
  {
    MainGridActivity.g(this.a);
    int i;
    int j;
    label165: label230: pageList localpageList;
    if ((MainGridActivity.c(this.a) != null) && (MainGridActivity.c(this.a).size() > 0) && (MainGridActivity.d(this.a) != null))
    {
      MainGridActivity.b(this.a, MainGridActivity.c(this.a).size());
      MainGridActivity localMainGridActivity = this.a;
      if (MainGridActivity.h(this.a) % MainGridActivity.i(this.a) <= 0)
        break label309;
      i = 1 + MainGridActivity.h(this.a) / MainGridActivity.i(this.a);
      MainGridActivity.c(localMainGridActivity, i);
      if (MainGridActivity.j(this.a) == null)
        MainGridActivity.a(this.a, new cr(this.a));
      if (MainGridActivity.k(this.a) < MainGridActivity.l(this.a))
        break label329;
      j = -1 + MainGridActivity.l(this.a);
      MainGridActivity.d(this.a).a(MainGridActivity.j(this.a), j);
      if (MainGridActivity.m(this.a) != null)
      {
        if (MainGridActivity.n(this.a) != null)
          break label341;
        MainGridActivity.a(this.a, new d(this.a, MainGridActivity.l(this.a)));
        MainGridActivity.m(this.a).a(MainGridActivity.n(this.a));
      }
      localpageList = MainGridActivity.m(this.a);
      if (MainGridActivity.k(this.a) < MainGridActivity.l(this.a))
        break label361;
    }
    label309: label329: label341: label361: for (int k = -1 + MainGridActivity.l(this.a); ; k = MainGridActivity.k(this.a))
    {
      localpageList.a(k);
      this.a.j();
      MainGridActivity.b(this.a, false);
      return;
      i = MainGridActivity.h(this.a) / MainGridActivity.i(this.a);
      break;
      j = MainGridActivity.k(this.a);
      break label165;
      MainGridActivity.n(this.a).a(MainGridActivity.l(this.a));
      break label230;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.q
 * JD-Core Version:    0.6.0
 */